package priv.lhy.controller;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: lihy
 * date: 2020/1/14 14:12
 * description:
 */
@RefreshScope
@RestController
public class LocalConfigController {

    @Value("${foo}")
    private String foo;

    @GetMapping("getFoo")
    public String getFoo(){
        return foo;
    }
}
